package cn.edu.zzuli.nothinglink.vo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CourseInfoVo {

    @NotNull(message = "courseName不能为null")
    @NotEmpty(message = "courseName不能为空字符串")
    private String courseName;

    @NotNull(message = "courseDesc不能为null")
    @NotEmpty(message = "courseDesc不能为空字符串")
    private String courseDesc;

    @NotNull(message = "createTime不能为null")
    private LocalDateTime createTime;

    @NotNull(message = "endTime不能为null")
    private LocalDateTime endTime;

    @NotNull(message = "courseImgUrl不能为null")
    @NotEmpty(message = "courseImgUrl不能为空字符串")
    private String courseImgUrl;

    //需要绑定的班级
    @NotNull
    private List<Integer> classIds;

    //--------分割线以下：修改数据的时候需要，新建课程时不需要----------
    private String courseUrl;
    private Integer courseId;

    //--------分割线以下：学生读取课程详情需要。----------
    private List<String> bindClassNames;
}
